import { defineStore } from 'pinia'

export const useFormDataStore = defineStore({
  id: 'formData',
  state: () => {
    return {
      testForm: {
        testName: '',
        testDate: '',
        jobGrade: '',
      },
    }
  },
  actions: {},
  persist: {
    enabled: true,
    encryptionKey: 'formData',
    strategies: [
      {
        key: 'formData',
        storage: sessionStorage,
      },
    ],
  },
})
